package ch.fhnw.qualiscan.core.db.pojos;

import java.io.Serializable;
import java.util.Date;

/**
 * This pojo holds the information about a user. It is used by hibernate to get data out of the database.
 * @author Kevin Mettenberger
 *
 */
@SuppressWarnings("serial")
public class User implements Serializable { 
	
	private int id;
	private String email = "";
	private String firstname = "";
	private String lastname = "";
	private String password = "";
	private Role role;
	private Language language;
	private Date regdate;
	
	public User() {
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Language getLanguage() {
		return language;
	}

	public void setLanguage(Language language) {
		this.language = language;
	}
	
	public Date getRegdate() {
		return this.regdate;
	}
	
	public void setRegdate(Date date) {
		this.regdate = date;
	}
}
	
